home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 326-350 / disk_349 / med / medpatch / medpatch.doc < prev   
Text File  |  1992-05-06  |  2KB  |  49 lines

  1. MEDPatch.doc
  2. ============
  3.  
  4. The problem:
  5. ------------
  6. The audio hardware of Amiga needs a small pause after DMA is turned on/off
  7. and the new values can be pushed to hardware registers. This could be
  8. done with audio interrupts, but I couldn't get it work, so the pause
  9. is done in the following way:
  10.  
  11.         move.l    waithwnum,d1
  12. waithw0:    dbf    d1,waithw0
  13.         ----- DMA on -----
  14.         move.l    waithwnum,d1
  15. waithw1:    dbf    d1,waithw1
  16.         ----- new values to registers ---
  17.  
  18. It means that the player must busy wait in the interrupt code. The pause
  19. is very short, so it will not slow down your computer. The only problem
  20. is that when you in year 2000 buy an Amiga 5000 with 500 MHz M68050,
  21. 1 Gigabytes of 128-bit ram and 4096×4096 screen resolution with
  22. 1 073 741 824 colors (I hope this would be true), the pause will be too
  23. short because of the fast processor. It is not dangerous, your Amiga won't
  24. crash, but the sound won't be very enjoyable then.
  25.  
  26. The solution:
  27. -------------
  28. The solution is MEDPatch. It can modify the length of the pause.
  29. The player routine of MED contains an identification string ("MEDPlayer
  30. is here!!!:"). This string is followed by a long word, which contains
  31. the pause length. The default length is 500, and it should work well
  32. with all current Amigas.
  33. MEDPatch usage is:
  34.  
  35.     medpatch <file> <value>
  36.  
  37. <file>    is the name of the executable file you want to change.
  38. <value>    is the new pause length. If not specified, MEDPatch will
  39.     just tell you the current pause length of the file.
  40.  
  41. You can use MEDPatch to MED, MEDPlayer and you should also be able to
  42. use it to all programs containing MEDPlayer (programmers please, don't
  43. remove the identification string!!).
  44.  
  45. --------------
  46. Please also note that this pause-problem is not just a problem of MED.
  47. SoundTracker also uses the dbf-instruction for the pause, but there's 
  48. no way to increase the pause length -number for super-fast processors.
  49.